#ifndef WEBRTC_CLIENT_H_
#define WEBRTC_CLIENT_H_

#ifdef __cplusplus
extern "C" {
#endif

    /**
     * @brief start webrtc server in current thread
     */
    void start_webrtc_video();

    /**
     * @brief get webrtc server status: 1: peer connected, 0: idle
     */
    int get_webrtc_status();

    /**
     * @brief add image into webrtc server image pool, only support RGB24 image format
     *
     * @param data   image data point
     * @param width  image width
     * @param height  image height
     */
    void send_webrtc_image(unsigned char *img_data, int width, int height);

    /**
     * @brief stop webrtc server thread
     */
    void stop_webrtc_video();

#ifdef __cplusplus
}
#endif
#endif  // WEBRTC_CLIENT_H_
